<!-- 引入时间插件 -->
<script src="__PUBLIC__/admin/js/My97DatePicker/WdatePicker.js"></script>

 <div class="container-fluid">
  <div class="row-fluid">
    <div class="span12">
    <form role="form" id="form" action="{:U('Award/update_award',array('id'=>$list['id'],'cid'=>$list['cid']))}">    
    <div class="form-group">
      <label for="name">奖品名</label>
      <input type="text" class="form-control" value="{$list.name}" name="name" required="required" />
   </div>
   <div class="form-group">
      <label for="name">数量</label>
      <input type="text" class="form-control" value="{$list.num}" name="num" required="required" />
   </div>
    

   <div class="form-group">
      <label for="name">优惠券类型</label>
      <select name="type" id="tesetSelect" form="form">
        <option value="{$list.type}"> <if condition="$list['type'] eq '1'">打折券</if> <if condition="$list['type'] eq '2'">服务券</if>
              <if condition="$list['type'] eq '3'">节日生日券</if>
              <if condition="$list['type'] eq '4'">活动入场券</if></option>

        <option value="1">打折券</option>
        <option value="2">服务券</option>
        <option value="3">节日生日券</option>
        <option value="4">活动入场券</option>
      </select>
   </div>


     <div class="form-group">
      <label for="name">开始时间</label>
<!--       <input type="text" class="form-control" name="starttime" required="required" />
 -->      <input name="starttime" class="form-control" value="{$starttime}"  type="text"  onclick="WdatePicker({realDateFmt :'yyyy-MM-dd HH:mm:ss',dateFmt:'yyyy-MM-dd HH:mm:ss'})" required="required" />
       </div>
       <div class="form-group">
      <label for="name">结束时间</label>
      <!-- <input type="text" class="form-control" name="endtime" required="required" /> -->
      <input name="endtime" class="form-control"  type="text" value="{$endtime}"  onclick="WdatePicker({realDateFmt :'yyyy-MM-dd HH:mm:ss',dateFmt:'yyyy-MM-dd HH:mm:ss'})" required="required"  />
       </div> 
    <button type="submit" class="btn btn-default">提交</button>
</form>
    </div>
  </div>
</div>